package com.bee.oa.service.sm.impl;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.bee.base.entity.Page;
import com.bee.oa.dao.sm.PostDao;
import com.bee.oa.domain.sm.Post;
import com.bee.oa.service.sm.PostService;

public class PostServiceImpl implements PostService {

	private PostDao postDao;

	public void setPostDao(PostDao postDao) {
		this.postDao = postDao;
	}

	@Override
	public Serializable save(Post entity) {
		return postDao.save(entity);
	}

	@Override
	public void saveAll(Collection<Post> entities) {
		postDao.saveAll(entities);
	}

	@Override
	public Post get(Long sid) {
		return postDao.get(sid);
	}

	@Override
	public List<Post> find(String queryString, Object... values) {
		return postDao.find(queryString, values);
	}

	@Override
	public List<Post> find(Post entity) {
		return postDao.find(entity);
	}

	@Override
	public List<Post> find(Map<String, String> params) {
		return postDao.find(params);
	}

	@Override
	public List<Post> findAll() {
		return postDao.findAll();
	}

	@Override
	public void update(Post entity) {
		postDao.update(entity);
	}

	@Override
	public void updateAll(Collection<Post> entities) {
		postDao.updateAll(entities);
	}

	@Override
	public void delete(Post entity) {
		postDao.delete(entity);
	}

	@Override
	public void delete(Long sid) {
		postDao.delete(sid);
	}

	@Override
	public void deleteAll(Collection<Post> entities) {
		postDao.deleteAll(entities);
	}

	@Override
	public Page page(String queryString, int pageNo, int pageSize) {
		return postDao.page(queryString, pageNo, pageSize);
	}

	@Override
	public Page page(Map<String, String> params, int pageNo, int pageSize) {
		return postDao.page(params, pageNo, pageSize);
	}

}
